﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace jacSocket
{
    public class ClientSocketPacket
    {
        public System.Net.Sockets.Socket Socket { get; set; }

        public string userGuid { get; set; }
        public string UserId { get; set; }

        private byte[] _buffer;

        public byte[] Buffer
        {
            get
            {
                if (_buffer == null)
                    _buffer = new byte[1024];

                return _buffer;
            }
        }

        private MessageStream stream;

        public MessageStream Stream
        {
            get
            {
                if (stream==null)
                {
                    stream = new MessageStream();
                }
                return stream;
            }
        }
    }
}
